﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using FinPlusComponents;
using FinPlusCommon;

namespace Test_FinPlusServiceComponents
{
    class Test_FinPlusComponents
    {

        static void Main(string[] args)
        {
            Thread thread = new Thread(() => 
            {
                var data = new FinPlusData("trade", "Name = 'FunctionName' AND Value = 'Repo'");
                Functions f = data.Functions;
                f.OnUpdate += f_OnUpdate;
            });

            thread.Start();

            Console.WriteLine("enter to exit");
            Console.ReadLine();
        }

        private static void f_OnUpdate(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }

        private static void f_OnUpdate(Function sender, ChangeType changeType)
        {
           
        }

 

    }
}
